﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" ValidateRequest="false"
    AutoEventWireup="true" CodeFile="SaleProcessHealthForm.aspx.cs" Inherits="App_Input_SaleProcessHealthForm"
    Title="体检报告" %>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>
<%@ Register TagPrefix="shpm" TagName="TipBar" Src ="~/App/Input/SaleProcessTipBar.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script language="javascript">
        function openPersonDetails(personId){
            var url  = "../Commons/CustomerDetailForm.aspx";
	        var prm  = "?PERSON_ID=" + personId;
	        url += prm;
	        var win = window.open(url,'CustomerForm','scrollbars,resizable');
	        win.focus();
	        return false;
        }
        
        // physical search form pop up
        function openPhysicalRptSrh(pattern){
            var url  = "../Commons/PhysicalRegistePopForm.aspx";
            var personId = '';
            var controlId = '';
	        var prm  = '';
	        if (1 == pattern){
	            personId = '<%=Label1.Text%>';
	            controlId = '<%=txtPhysicalIdMain.ClientID%>';
	        } else if (2 == pattern){
	            personId = '<%=Label2.Text%>';
	            controlId = '<%=txtPhysicalIdAsst.ClientID%>';
	        } else if (3 == pattern){
                personId = '<%=Label3.Text%>';
	            controlId = '<%=txtPhysicalIdComp.ClientID%>';	        
	        }
	        prm = "?PERSON_ID=" + personId+"&CONTROL_ID="+controlId;
	        url += prm;
	        var win = window.open(url,"PhysicalSrhForm" + pattern,'scrollbars,resizable');
	        win.focus();
	        return false;
        }        
        function openPhysicalDetails(pattern){
            var url  = "../Commons/PhysicalRegistePopForm.aspx";   
            var physicalId = '1';
	        var prm  = '';   
	        prm  = "?PHYSICAL_ID=" + physicalId;		                
	        url += prm;  
	        var win = window.open(url,"PhysicalViewForm" + pattern,'scrollbars,resizable');
	        win.focus();
        }
    </script>

    <cc1:ComValidator ID="ComValidator1" runat="server" ForeColor="White" CheckItems-Capacity="4">
        <cc1:CheckRequiredAttribute Code="E0094" ControlToValidator="txtPhysicalIdMain">
            <cc1:ComAbsParamsAttribute Parameter="体检报告编号" />
        </cc1:CheckRequiredAttribute>
        <cc1:CheckLongAttribute Code="E0322" ControlToValidator="txtPhysicalIdMain">
            <cc1:ComAbsParamsAttribute Parameter="体检报告编号" />
        </cc1:CheckLongAttribute>
        <cc1:CheckLongAttribute Code="E0322" ControlToValidator="txtPhysicalIdAsst">
            <cc1:ComAbsParamsAttribute Parameter="体检报告编号" />
        </cc1:CheckLongAttribute>
        <cc1:CheckLongAttribute Code="E0322" ControlToValidator="txtPhysicalIdComp">
            <cc1:ComAbsParamsAttribute Parameter="体检报告编号" />
        </cc1:CheckLongAttribute>
    </cc1:ComValidator>

    <script language="javascript" src="../../javascript/commjs.js">                               
    </script>

    <div id="container">
        <div id="title">
            <ul>
                <li id="tag1" style="display:none">
                    <asp:LinkButton ID="LinkButton1" OnCommand="lnkTab_Command" CommandName="btn0" runat="server" Enabled="false" Width="105px"><span>新建销售档案</span></asp:LinkButton>
                </li>
                <li id="tag2">
                    <asp:LinkButton ID="LinkButton2" OnCommand="lnkTab_Command" CommandName="btn1" runat="server"><span>销售记录</span></asp:LinkButton>
                </li>
                <li id="tag4">
                    <asp:LinkButton ID="LinkButton4" OnCommand="lnkTab_Command" CommandName="btn3" runat="server" Width="95px"><span>权益人管理</span></asp:LinkButton>
                </li>
                <li id="tag3">
                    <asp:LinkButton ID="LinkButton3" OnCommand="lnkTab_Command" CommandName="btn2" runat="server"
                        CssClass="selectli" OnClientClick="return false;"><span class="selectspan">会员管理</span></asp:LinkButton>
                </li>
                <li id="Li6">
                    <asp:LinkButton ID="LinkButton11" OnCommand="lnkTab_Command" CommandName="btn6" runat="server" Width="105px"><span>入住资格审核</span></asp:LinkButton>
                </li>
                <li id="tag5">
                    <asp:LinkButton ID="LinkButton5" OnCommand="lnkTab_Command" CommandName="btn4" runat="server"><span>会员入住</span></asp:LinkButton>
                </li>
            </ul>
            <ul>
                <li id="Li1">
                    <asp:LinkButton ID="LinkButton6" OnCommand="lnkTab_Command" CommandName="btn2_1"
                        runat="server"><span>会员信息</span></asp:LinkButton></li><li id="Li2"  style="display:none">
                            <asp:LinkButton ID="LinkButton7" OnCommand="lnkTab_Command" CommandName="btn2_2"
                                runat="server"><span>副会员</span></asp:LinkButton></li><li id="Li3"  style="display:none">
                                    <asp:LinkButton ID="LinkButton8" OnCommand="lnkTab_Command" CommandName="btn2_3"
                                        runat="server"><span>陪住人</span></asp:LinkButton>
                                </li>
                <li id="Li4">
                    <asp:LinkButton ID="LinkButton9" OnCommand="lnkTab_Command" CommandName="btn2_4"
                        runat="server" CssClass="selectli" OnClientClick="return false;"><span class="selectspan">体检报告</span></asp:LinkButton>
                </li>
                <li id="Li7">
                    <asp:LinkButton ID="LinkButton12" OnCommand="lnkTab_Command" CommandName="btn2_7"
                        runat="server"><span>补充信息</span></asp:LinkButton>
                </li>
                <li id="Li5" style="display:none">
                    <asp:LinkButton ID="LinkButton10" OnCommand="lnkTab_Command" CommandName="btn2_5"
                        runat="server"><span>审核</span></asp:LinkButton>
                </li>
            </ul>
        </div>
        <div id="content" class="content1">
        <shpm:TipBar runat="server" ID="tipBar" />
            <table width="100%">
                <tr>
                    <td >
                        <table class="table_border_line">
                            <tr>
                                <th align="left" colspan="6" style="text-align: left; height: 15px;">

                                    <script language="javascript">
                                        (new TitleBar('SearchBar', '体检报告登记')).showBar();
                                    </script>

                                </th>
                            </tr>
                        </table>
                        <table>
                            <tr>
                                <td style="width: 393px; ">
                                     <table class="table_border_line" style="background: ffffff">
                                        <tr>
                                            <td style="width: 2%; height: 20px"></td>
                                            <td align="left" class="" nowrap="nowrap" style="width: 16%; height: 25px">员工姓名：</td>
                                            <td align="left" style="width: 287px" class="">&nbsp;<asp:Label ID="lblEmpId" runat="server"></asp:Label></td>
                                            <td align="right" colspan="3"></td>
                                        </tr>
                                        <tr style="display: none">
                                            <td style="width: 2%; height: 20px"></td>
                                            <td align="left" class="" nowrap style="width: 16%; height: 25px">销售编号：</td>
                                            <td align="left" style="width: 287px" class="">&nbsp;<asp:Label ID="lblProcId" runat="server"></asp:Label></td>
                                            <td align="right" colspan="3"></td>
                                        </tr>
                                        <tr style="display: none">
                                            <td style="width: 2%; height: 20px"></td>
                                            <td align="left" class="" nowrap="nowrap" style="width: 16%; height: 25px"></td>
                                            <td align="left" class="" style="width: 287px"></td>
                                            <td align="right" colspan="3"></td>
                                        </tr>
                                        <tr>
                                            <td style="width: 2%; height: 25px">&nbsp;</td>
                                            <td style="width: 16%; height: 25px" class="" nowrap>会员姓名（主）：</td>
                                            <td style="HEIGHT: 25px; width: 287px;" align="left" class="">&nbsp;<asp:Label ID="lblPersonMain" runat="server"
                                                Width="155px"></asp:Label>&nbsp;
                                                <asp:Button runat="server" ID="Button1" Text="通知体检" OnClientClick="javascript:return false;" />
                                                <asp:Label ID="Label1" runat="server" Visible="False" Width="10px"></asp:Label><!--<input id="btnPsnDtl" type="button" value="客户详细" onclick="javascript:openPersonDetails('<%=lblPersonMain.Text%>');" />--></td>
                                            <td colspan="3" align="right" style="height: 25px">&nbsp;</td>
                                        </tr>
                                        <tr style="display:none">
                                            <td style="width: 2%; height: 25px">&nbsp;</td>
                                            <td class="" nowrap style="width: 16%; height: 25px">体检报告编号：</td>
                                            <td class="" style="height: 25px; width: 287px;">&nbsp;<asp:TextBox ID="txtPhysicalIdMain" runat="server" MaxLength="4"></asp:TextBox>&nbsp;
                                                <asp:Button runat="server" ID="btnRptSrh1" Text="检索报告" OnClientClick="javascript:return openPhysicalRptSrh(1);" /></td>
                                            <td colspan="3" align="right" style="height: 25px">&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td style="width: 2%; height: 25px"></td>
                                            <td class="" nowrap="nowrap" style="width: 16%; height: 25px"></td>
                                            <td class="" style="height: 25px; width: 287px;"></td>
                                            <td align="right" colspan="3" style="height: 25px"></td>
                                        </tr>
                                        <tr>
                                            <td style="width: 2%; height: 20px"></td>
                                            <td class="" nowrap="nowrap" style="width: 16%; height: 25px">会员姓名（副）：</td>
                                            <td class="" style="width: 287px">&nbsp;<asp:Label ID="lblPersonAsst" runat="server" Width="155px"></asp:Label>&nbsp;
                                                <asp:Button runat="server" ID="Button2" Text="通知体检" OnClientClick="javascript:return false;" />
                                                <asp:Label
                                                ID="Label2" runat="server" Visible="False" Width="10px"></asp:Label></td>
                                            <td align="right" colspan="3"></td>
                                        </tr>
                                        <tr style="display:none">
                                            <td style="width: 2%; height: 20px"></td>
                                            <td class="" nowrap="nowrap" style="width: 16%; height: 25px">体检报告编号：</td>
                                            <td class="" style="width: 287px">&nbsp;<asp:TextBox ID="txtPhysicalIdAsst" runat="server" MaxLength="4"></asp:TextBox>&nbsp;
                                                <asp:Button runat="server" ID="btnRptSrh2" Text="检索报告" OnClientClick="javascript:return openPhysicalRptSrh(2);" /></td>
                                            <td align="right" colspan="3"></td>
                                        </tr>
                                        <tr>
                                            <td style="width: 2%; height: 20px"></td>
                                            <td class="" nowrap="nowrap" style="width: 16%; height: 25px"></td>
                                            <td class="" style="width: 287px"></td>
                                            <td align="right" colspan="3"></td>
                                        </tr>
                                        <tr>
                                            <td style="width: 2%; height: 20px"></td>
                                            <td class="" nowrap="nowrap" style="width: 16%; height: 25px">陪住人姓名：</td>
                                            <td class="" style="width: 287px">&nbsp;<asp:Label ID="lblPersonComp" runat="server" Width="155px"></asp:Label>&nbsp;
                                                <asp:Button runat="server" ID="Button3" Text="通知体检" OnClientClick="javascript:return false;" />
                                                <asp:Label
                                                ID="Label3" runat="server" Visible="False" Width="10px"></asp:Label></td>
                                            <td align="right" colspan="3"></td>
                                        </tr>
                                        <tr style="display:none">
                                            <td style="width: 2%; height: 20px"></td>
                                            <td class="" nowrap="nowrap" style="width: 16%; height: 25px">体检报告编号：</td>
                                            <td class="" style="width: 287px">&nbsp;<asp:TextBox ID="txtPhysicalIdComp" runat="server" MaxLength="4"></asp:TextBox>&nbsp;
                                                <asp:Button runat="server" ID="btnRptSrh3" Text="检索报告" OnClientClick="javascript:return openPhysicalRptSrh(3);" /></td>
                                            <td align="right" colspan="3"></td>
                                        </tr>
                                        <tr>
                                            <td style="width: 2%; height: 20px"></td>
                                            <td class="" nowrap="nowrap" style="width: 16%; height: 25px"></td>
                                            <td class="" style="width: 287px"></td>
                                            <td align="right" colspan="3"></td>
                                        </tr>
                                        <tr>
                                            <td style="width: 2%; height: 20px"></td>
                                            <td class="" nowrap="nowrap" style="width: 16%; height: 25px">提交审核：</td>
                                            <td class="" style="width: 287px">
                                                <asp:CheckBox ID="ckbAuditing" runat="server" Text="提交到上级待审" Width="120px" /></td>
                                            <td align="right" colspan="3"></td>
                                        </tr>
                                        <tr>
                                            <td style=""></td>
                                            <td colspan="2" align="center"></td>
                                            <td colspan="3" align="right">&nbsp;</td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
  <table >
                                        <tr>
                                            <td class="GridView_head_grayblue" style="width: 40px; height: 26px">
                                                选择</td>
                                            <td style="width: 97px; height: 26px" class="GridView_head_grayblue">
                                            体检人
                                            </td>
                                             <td style="width: 146px; height: 26px" class="GridView_head_grayblue">
                                                 通知时间
                                            </td>
                                             <td style="width: 129px; height: 26px" class="GridView_head_grayblue">
                                            填表人
                                            </td>
                                             <td style="width: 111px; height: 26px" class="GridView_head_grayblue">
                                            填写时间
                                            </td>
                                            <td style="width: 54px; height: 26px" class="GridView_head_grayblue">
                                                详细&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td style="width: 40px; height: 22px" align="center">
                                                <asp:RadioButton ID="RadioButton1" runat="server" Text=" "  GroupName="111"/></td>
                                           <td style="width: 97px; height: 22px">
                                               张</td>
                                             <td style="width: 146px; height: 22px">
                                                 2007/10/12</td>
                                             <td style="width: 129px; height: 22px">
                                                 赵</td>
                                             <td style="width: 111px; height: 22px">
                                                 2007/11/1</td>
                                            <td style="width: 54px; height: 22px" align="center">
                                            <a href="#" onclick="javascript:return openPhysicalDetails(1);">
                                            <img src="../../images/edit.jpg"/></a>
                                              </td>
                                        </tr>
                                        
                                    </table>
                    </td>
                </tr>
                <tr>
                    <td align="center" style="">
                        <asp:Button ID="btnOk" runat="server" Text="保存" CssClass="button" OnClick="btnOk_Click" Width="75px" /></td>
                </tr>
            </table>
        </div>
    </div>
    <!--**************************************************-->
    <!--销售过程跟踪-->
    <%-- 
    <table class="table_border_line">
        <tr>
            <th align="left" colspan="8" style="text-align: left;">

                <script language="javascript">
                                        (new TitleBar('SearchBar1', '销售过程跟踪:')).showBar();
                </script>

            </th>
        </tr>
    </table>
    <table class="table_border_line" style="background: ffffff">
        <tr>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td style="" class="">
                <asp:LinkButton ID="lnkBtn0" runat="server" OnCommand="lnkBtn_Command" CommandName="btn0"
                    ForeColor="Green">&nbsp;&nbsp;新建登记－〉</asp:LinkButton></td>
            <td style="" class="">
                <asp:LinkButton ID="lnkBtn1" runat="server" OnCommand="lnkBtn_Command" CommandName="btn1"
                    ForeColor="Red" OnClientClick="javascript:return false;">&nbsp;销售记录－〉</asp:LinkButton></td>
            <td style="display: none" class="">
                <asp:LinkButton ID="lnkBtn2" runat="server" Enabled="False" OnCommand="lnkBtn_Command"
                    CommandName="btn2">&nbsp;体检－〉</asp:LinkButton></td>
            <td style="" class="">
                <asp:LinkButton ID="lnkBtn3" runat="server" Enabled="False" OnCommand="lnkBtn_Command"
                    CommandName="btn3">&nbsp;提交审核－〉</asp:LinkButton></td>
            <td style="" class="">
                <asp:LinkButton ID="lnkBtn4" runat="server" Enabled="False" OnCommand="lnkBtn_Command"
                    CommandName="btn4">&nbsp;签订合同－〉</asp:LinkButton></td>
            <td style="" class="">
                <asp:LinkButton ID="lnkBtn5" runat="server" Enabled="False" OnCommand="lnkBtn_Command"
                    CommandName="btn5">&nbsp;财务收费－〉</asp:LinkButton></td>
            <td style="" class="">
                <asp:LinkButton ID="lnkBtn6" runat="server" Enabled="False" OnCommand="lnkBtn_Command"
                    CommandName="btn6">&nbsp;移交资料</asp:LinkButton></td>
            <td style="display: none" class="">
                <asp:LinkButton ID="lnkBtn7" runat="server" Enabled="False">&nbsp;</asp:LinkButton></td>
        </tr>
        <tr>
            <td style=""></td>
            <td style=""></td>
            <td style=""></td>
            <td style=""></td>
            <td style=""></td>
            <td style=""></td>
            <td style=""></td>
            <td style=""></td>
        </tr>
    </table>
    --%>
</asp:Content>
